<?php defined('IN_HOPECMS') or exit('Access Denied'); ?>
<div id="menu"></div>
<div id="nav">
	<?php $i=1; foreach ($top_menu as $menu) : ?>
	<a list="<?php echo $i;?>" onclick="menu(<?php echo $menu['menu_id'];?>)"><?php echo $menu['menu_name'];?></a>
	<?php $i++; endforeach; ?>
	<script type="text/javascript">
		(function(){
			$('#nav a').click(function(){
				$('#nav a').removeClass('link');
				$(this).addClass('link');
			});
			$('.menu_list li').live('click', function(){
				$('.menu_list li').removeClass('link');
				$(this).addClass('link');
				$('.top_button').remove();
			});
		})();
	</script>
</div>
<div id="main_content"></div>